#include "circle.h"
#define PERSON_COUNT 41

int main(int argc, char * argv[])
{
	int i = 0;
	linkedlist l;
	init_circle(&l);
	for (i = 0; i < PERSON_COUNT; i++)
	{
		insert_circle_tail(&l, i+1);
	}
	print(&l);

	LinkedNode p = l.head;
	int j = 1;
	while (l.size > 1)
	{
		if (++j == 3)
		{
			remove_next(&l, p);
			j = 1;
		}
		p = p->next;
	}
	print(&l);
	return 0;
}
